package com.chinatelecom.telecollege.sellerrewarding.Entity;

import javax.persistence.*;

/**
 * Created by lenovo on 2017/6/21.
 */
@Entity
@Table(name = "t_seller")
public class seller {
    @Id
    @Column(name = "phone")
    private String phone;

    @Column(name = "name")
    private String name;

    @Column(name = "password")
    private String password;

    @Column(name = "isadmin")
    private boolean isadmin;

    @Column(name = "isassistant")
    private boolean isassistant;

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public boolean isIsadmin() {
        return isadmin;
    }

    public void setIsadmin(boolean isadmin) {
        this.isadmin = isadmin;
    }

    public boolean isIsassistant() {
        return isassistant;
    }

    public void setIsassistant(boolean isassistant) {
        this.isassistant = isassistant;
    }

    @Override
    public String toString() {
        return "seller{" +
                "phone=" + phone +
                ", name='" + name +
                ", password='" + password +
                ", isadmin='" + isadmin +
                ", isassistant='" + isassistant +
                '}';
    }
}
